package day_2022_12_to_3.year2023;

import java.util.Arrays;

/**
 * @author haomin
 * @date 2023/03/30 20:55
 **/
public class Day3_30_Num1637 {
    class Solution {
        public int maxWidthOfVerticalArea(int[][] points) {
            Arrays.sort(points, (a, b) -> (a[0] - b[0]));
            int max = 0;
            for(int i = 0; i < points.length-1; ++i) {
                max = Math.max(max, points[i+1][0] - points[i][0]);
            }
            return max;
        }
    }
}